var _tmr=_tmr||[]; (function(){function Kb(a){!va&&"number"===typeof a&&(va=a);return N&&Lb&&hb?(ib=[Lb-N,hb-N,Ta?Ta-N:null,Ua?Ua-N:null,va?va-N:null].join("/"),Ta&&(Ua&&va)&&(Kb=function(){return ib}),ib):null}function r(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)}function L(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)}function Ca(a){return encodeURIComponent(a)}function Mb(a,b){try{if(a.nodeName.toLowerCase()===b.toLowerCase())return a; if(a.parentNode)return Mb(a.parentNode,b)}catch(c){s&&console.warn("[TopMailRu] Error#1.25",c)}return null}function Nb(a,b){if(null===a.offsetParent||(0==a.offsetHeight||0==a.offsetWidth||0==a.clientHeight||0==a.clientWidth)||b&&(0==a.offsetLeft||0==a.offsetTop))return!1;if(void 0!==f.getComputedStyle){var c=f.getComputedStyle(a,null);return"none"!==c.display&&"hidden"!==c.visibility}return!0}function Ob(a,b){for(var c=0,d=b.length;ce?d[e]:null}function Qb(a){return(""+a).replace(/[\/\^\$\*\+\?\.\|\(\)\[\]\{\}\\]/g,"\\$&")}function jb(a){return Pb(a.host,/^(?:w{3}.)?(.*)$/,1)||""}function Dc(a,b,c){a=jb(a);b=(b&&0b||b>Zb?null:{id:a[0],version:a[1]}}function $b(a){rb=!0;a.length&&pb(lb("/js/dyn-goal-config.js?ids="+a.join(",")))}function p(){}function Fa(a){a&&"object"===typeof a&&(!S&&"id"in a)&&(S=a.id)}function Ga(a){return!Va? void 0:Va[a]}function Sc(a){return(a=Ga(a))&&Wa?a-Wa:void 0}function ac(){if(Va){for(var a=0,b="domInteractive domContentLoadedEventStart domContentLoadedEventEnd domComplete loadEventStart loadEventEnd".split(" "),c=0;cc?d||0===d?d:null:e}function cc(a, b){if("URL"in window){var c=b;try{c=new URL(a)}catch(d){return b}return c?a:b}return a||b}function dc(a,b){if("URL"in window){var c=b;try{c=new URL(a)}catch(d){return"d:"}return c?"e:":"d:"}return a?"e:":"d:"}function ec(a,b,c){if(!a)return b;if("URL"in window){try{var d=new URL(a);if(d)return a}catch(e){}try{if(d=new URL(a,c))return d.href?d.href:d.toString()}catch(h){}return b}return a}function fc(a,b,c){if(!a)return"d:";if("URL"in window){try{var d=new URL(a);if(d)return"e:"}catch(e){}try{if(d= new URL(a,c))return"h:"}catch(h){}return"d:"}return"e:"}function J(a,b,c,d){na&&Ea(Ha,++F);var e="id"in a?a.id:S,h=cc(a.url,v.href),g=cc(a.referrer,k.referrer),n=ec(a.url,v.href,v.href),l=ec(a.referrer,k.referrer),m="title"in a?a.title:k.title,fa;fa=sb;null===fa&&(fa=Tc());fa=null!==fa?fa?1:0:null;var u="userid"in a?a.userid:T||0===T?T:void 0,O=U?U:void 0,t;t=oa&&a.bfCache;var p="pageView"===a.type&&a.timespent,x=[];S&&e!==S&&x.push("sec");"dataLayer"in f&&x.push("dl");M&&x.push(["ecom"].concat(M).join("-")); var Ba=Uc();Ba&&Ba.length&&x.push(["jst"].concat(Ba).join("-"));t&&x.push("bfc");P&&p&&x.push("ts");f.top!==f&&x.push("frame");(!0===B.webdriver||k.$cdc_asdjflasutopfhvcZLmcfl_)&&x.push("wda");Ia&&x.push.apply(x,Ia);t=x.join(",");var gc,p=(new Date).getTimezoneOffset(),x="";if(f.Intl)try{x=f.Intl.DateTimeFormat().resolvedOptions().timeZone||""}catch(Vc){s&&console.warn("[TopMailRu] Error#1.1",Vc)}gc=p+"/"+x;var p=hc,p=null!==p?p:Rc(),za=Kb(a.start),x=ic(),Ba=jc();b=b+"?_="+Math.random()+(e?";id="+ encodeURIComponent(e):"")+(n?";u="+encodeURIComponent(n):"")+(l?";r="+encodeURIComponent(l):"")+(h!==n?";u2="+dc(a.url,v.href)+fc(a.url,v.href,v.href):"")+(g!==l?";r2="+dc(a.referrer,k.referrer)+fc(a.referrer,k.referrer):"");e=bc(a.gender,1,2);b+=null!==e?";gender="+e:"";e=bc(a.age,1,127);d=b+(null!==e?";age="+e:"")+("pid"in a?";pid="+encodeURIComponent(a.pid):"")+(void 0!==u?";userid="+encodeURIComponent(u):"")+(void 0!==O?";uparams="+Ca(ya(O)):"")+(d&&m?";title="+encodeURIComponent(m):"");m=";s="+ Wc+";vp=";O=u=0;k.documentElement&&(k.documentElement.clientWidth||k.documentElement.clientHeight)?(u=k.documentElement.clientWidth,O=k.documentElement.clientHeight):"number"==typeof f.innerWidth&&(u=f.innerWidth,O=f.innerHeight);d=d+(m+(""+u+"*"+O)+";touch="+Xc+";hds="+Yc)+";sid="+tb+";ver="+Zc+";tz="+encodeURIComponent(gc)+";st="+ac();if(c){if(!Va||!ub)c="";else{c=[];c.push(ub.type);c.push(ub.redirectCount);c.push(Wa);for(m=0;mb||b>oc)return null;a=parseInt(a[0],10);return isNaN(a)?null:a}function mc(a){var b=q();a=[a,b].join("|");Da(nc,a,{path:"/",expires:oc})}function bd(){var a=0;Za&&(a=q()-Za);cd||(y.dcl3=setTimeout(function(){vb("DCL/3")},Math.max(3E3-a,0)))}function dd(){var a=0;$a&&(a=q()-$a);ed||(y.pvt2=setTimeout(function(){vb("PVT/2")},Math.max(2E3-a,0)));fd||(y.pvt15=setTimeout(function(){vb("PVT/15")},Math.max(15E3- a,0)))}function pc(){xb||setInterval(function(){_tmr.beat()},6E4)}function gd(a,b,c,d){if(!b||!d||d===yb&&b===yb&&c===yb)return null;b={goal:hd+b,value:c||0,params:{product_id:d}};a&&(b.id=a);return b}function ab(){Za=q();k.addEventListener?(L(k,"DOMContentLoaded",ab),_tmr.onready()):k.attachEvent&&"complete"===k.readyState&&(L(k,"readystatechange",ab),_tmr.onready());qc()}function zb(a){$a=q();if(oa){if(a.persisted){Ka=La=bb=0;Ab=Bb=!1;P&&z.launch();a=Cb;Cb=[];for(var b=0,c=a.length;bthis.loopNumber){var n=this;setTimeout(function(){n._checkBait.call(n)},50*this.loopNumber)}else try{c= this.fnNegative,c()}catch(l){s&&console.warn("[TopMailRu] Error#1.10",l)}}};b.prototype._stop=function(){try{k.body.removeChild(this.bait)}catch(a){s&&console.warn("[TopMailRu] Error#1.11",a)}};return function(a,c){new b(a,c)}}(),M=null,wc="ecommerce",V="dataLayer",sa=null,Db=!1,eb=[],pd=[36383,2540645,3171181,3074137,2057653],qd=[],Eb;(function(){function a(a,b){for(var c=0,d=b.length;carguments.length?(c=wa.concat(la),d=E):(c=[a+"_"+b],d=V);g(c,d)}function h(a,b,c){var d=!1,e=[],f=[];2>arguments.length?(e=wa.slice(),(d=!!arguments[0])&&(e=e.concat(la))):(d=a+"_"+b,-1!==wa.indexOf(d)?e=[d]:-1!==la.indexOf(d)&&(c?e=[d]:f=[d]));g(e,X);g(f,V)}function g(a,b){var c=B(),d=[],e,g,f;e=0;for(g= a.length;e=ra)){for(var h in I)m(h);for(h in ba)if(c=h,d=ba[c])P(c),A(c,d.key);N=R}}function n(a,b,c){var d=I[a];if(d&&!1!==d.updateTS)if(d.timespent[qa]=(d.timespent[qa]||0)+(c-(d.updateTS||R)),-1!==la.indexOf(a)&&x(null,c),b===X)d.updateTS=!1,m(a);else if(b===w){d.updateTS=c;var e;a:{if(b=I[a])for(e in b.timespent)if(b.timespent[e]>pa){e=!1;break a}e=!0}e?(l(a),F()): m(a)}else d.updateTS=b===E?null:c,l(a),F()}function l(a,b,c){var d=I[a];if(!d)return null;var e=b||d.key;b=Q[e];Q[e]={uid:a,name:d.name,counterID:c||d.id||G,canUseInBackground:d.canUseInBackground,isActive:!1!==d.updateTS,startTime:d.startTS,timespent:{}};a=Q[e].timespent;var d=d.timespent,g;for(g in d)a[g]=d[g];if(c&&(c=ka[c]))if(e=Q[e]){e.common={};e=e.common;c=c.timespent;for(var f in c)e[f]=c[f]}return b||null}function m(a){var b=I[a];b&&(l(a),p(a,b.key))}function p(a,b){var c=Q[b];if(c)if(ea(c.counterID)){var d= Q[b];if(d){var c=d.counterID,e=[],g,f,h,k;if(c){h=0;for(k=c.length;hq()-e.ts))return;pb("https://privacy-cs.mail.ru/static/sync-loader.js",c,d)})()})();var jc;(function(){var a=null,b=0;jc=function(){var c=q();if(b&&5E3>c-b)return a;b=c;return a= Z?Y("vkidExtId"):null}})();var Zc="60.6.0",bb=0,La=0,tb=Rb(16),T=null,U=null,Ka=0,Ha="tmr_reqNum",F=null;Z&&(F=Y(Ha)||null,null!==F&&nb(Ha,ob));na&&null===F&&(F=xa(Ha)||null);F=null===F?0:parseInt(F,10);na&&Ea(Ha,F);var rd=["c8fdd627023b870e211a908648e1a5e1"],ia=(Z?Y("tmr_lvid"):null)||(na?xa("tmr_lvid"):null),ha=(Z?Y("tmr_lvidTS"):null)||(na?xa("tmr_lvidTS"):null);if(null===ia||-1===ia.search(/^[0-9a-fA-F]+$/)||Ob(ia,rd))ia=Rb(32),ha=null;Ub("tmr_lvid",ia);if(null===ha||-1===ha.search(/^\d+$/))ha= ""+q();Ub("tmr_lvidTS",ha);var S=0,C=[],Oa=[],gb=[],fb=[],db=[],cb={},Xc="ontouchstart"in f||1<(B.maxTouchPoints||B.msMaxTouchPoints)?"1":"0",Yc=f.devicePixelRatio||0,Wc=function(){var a=f.screen;return a?a.width+"*"+a.height:""}(),Hb=f.performance||f.mozPerformance||f.msPerformance||f.webkitPerformance||{},Va=Hb.timing||{},ub=Hb.navigation||{},kc="unloadEventStart unloadEventEnd redirectStart redirectEnd fetchStart domainLookupStart domainLookupEnd connectStart connectEnd secureConnectionStart requestStart responseStart responseEnd domLoading domInteractive domContentLoadedEventStart domContentLoadedEventEnd domComplete loadEventStart loadEventEnd".split(" "), sd="startTime duration firstInterimResponseStart redirectStart redirectEnd fetchStart domainLookupStart domainLookupEnd connectStart connectEnd secureConnectionStart requestStart responseStart responseEnd".split(" "),Wa=Ga("navigationStart"),td=Ga("domContentLoadedEventStart"),ud=Ga("loadEventStart"),N=Wa,Xa=null,Ia=[];(function(){if(!Xa)try{for(var a=Hb.getEntriesByType("resource"),b,c=0,d=a.length;cOa.length&&!da(a.id,Oa)&&(Oa.push(a.id),!1!==a.beat&&gb.push(a.id),C.push(a),Ja&&Vb(a));oa&&(cb[a.id]= R(!0,{},a),cb[a.id].bfCache=!0);"detectBlocker"in a&&!a.detectBlocker&&(wb=!0);var b="string"===typeof a.ecommerce,c=b&&-1!==a.ecommerce.search(/\S/);if(5>fb.length&&!da(a.id,fb)&&(!0===a.ecommerce||b&&!c||b&&c||!1!==a.ecommerce&&!b&&(da(a.id,pd)||!da(a.id,qd)))){fb.push(a.id);if(b&&c){if(Db&&(Eb(a.ecommerce),V!==a.ecommerce)){V=a.ecommerce;M&&(M=[0,0,V]);break a}V=a.ecommerce;M&&(M=[0,0,V])}b=[a.id];if(Db)for(var c=0,d=eb.length;cb)return;this.callbackOnReady(a)}else if(b&& 0